package com.adtec.base.cloud.xxljobservise.xxljob.xxljob.controller;


import com.adtec.base.cloud.commons.exception.AjaxResponse;
import com.adtec.base.cloud.commons.exception.CustomException;
import com.adtec.base.cloud.commons.exception.CustomExceptionType;
import com.adtec.base.cloud.xxljobservise.xxljob.xxljob.service.XxljobWebService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.commons.lang.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/xxljob")
@Tag(name = "xxljob", description = "xxljob")
public class XxljobWebController {
    @Resource
    XxljobWebService xxljobWebService;

    @PostMapping(value = "/test")
    @Operation(description = "测试一些功能用的")
    @Parameters({@Parameter(name = "param", description = "参数")})
    public AjaxResponse test(@RequestParam("param") String param) {
        xxljobWebService.test(param);
        return AjaxResponse.success();
    }

}
